import './显示隐藏内容'
import './模板设置'
import './编辑代码块'

window.EcExtension?.ready?.(() => {
    if (window.ecodeSDK && location.hash.startsWith('#/main/workflow/req')) {
        window.EcExtension.Menus.register('流程管理/基础设置', () => {
            window.open(`/wui/engine.html#/workflowengine/path/pathSet/pathDetail/baseSet/baseInfo?workflowId=${window.WfForm.getBaseInfo().workflowid}`)
        })

        window.EcExtension.Menus.register('流程管理/编辑字段', () => {
            window.open(`/wui/engine.html#/workflowengine/path/pathSet/pathDetail/formManage/editField?isBill=1&isFromPath=true&formId=${window.WfForm.getBaseInfo().formid}&workflowId=${window.WfForm.getBaseInfo().workflowid}`)
        })

        window.EcExtension.Menus.register('流程管理/流转设置', () => {
            window.open(`/wui/engine.html#/workflowengine/path/pathSet/pathDetail/flowSet/nodeInfo?workflowId=${window.WfForm.getBaseInfo().workflowid}`)
        })
    }
})